/*
 * @Author: SevDaisy十七散人 
 * @Date: 2020-07-04 08:12:04 
 * @Last Modified by: SevDaisy十七散人
 * @Last Modified time: 2020-07-13 12:55:26
 */
package zyy.model;

public class BeanAddress {
  public static final String[] userAddrTitle = { "省", "市", "区", "精确", "收件人姓名", "收件人电话" };
  public static final String[] merchantAddrTitle = { "省", "市", "区", "精确", "商家名称", "商家电话" };
  private int AddressID;// 主键ID

  private int UserID; // 引用 用户ID
  private int MID;// 引用 商家ID

  private String addrProvince; // 省
  private String addrCity; // 市
  private String addrBlock; // 区
  private String addrDetail; // 精确
  private String targetName; // 收件人姓名
  private String Telphone; // 收件人电话

  public String getCell(int col) {
    switch (col) {
      case 0:
        return this.addrProvince;
      case 1:
        return this.addrCity;
      case 2:
        return this.addrBlock;
      case 3:
        return this.addrDetail;
      case 4:
        return this.targetName;
      case 5:
        return this.Telphone;
      default:
        return "";
    }
  }

  public int getAddressID() {
    return AddressID;
  }

  public void setAddressID(int addressID) {
    AddressID = addressID;
  }

  public int getUserID() {
    return UserID;
  }

  public void setUserID(int userID) {
    UserID = userID;
  }

  public String getAddrProvince() {
    return addrProvince;
  }

  public void setAddrProvince(String addrProvince) {
    this.addrProvince = addrProvince;
  }

  public String getAddrCity() {
    return addrCity;
  }

  public void setAddrCity(String addrCity) {
    this.addrCity = addrCity;
  }

  public String getAddrBlock() {
    return addrBlock;
  }

  public void setAddrBlock(String addrBlock) {
    this.addrBlock = addrBlock;
  }

  public String getTargetName() {
    return targetName;
  }

  public void setTargetName(String targetName) {
    this.targetName = targetName;
  }

  public String getTelphone() {
    return Telphone;
  }

  public void setTelphone(String telphone) {
    Telphone = telphone;
  }

  public String getAddrDetail() {
    return addrDetail;
  }

  public void setAddrDetail(String addrDetail) {
    this.addrDetail = addrDetail;
  }

  @Override
  public String toString() {
    return "BeanAddress [AddressID=" + AddressID + ", Telphone=" + Telphone + ", addrBlock=" + addrBlock + ", addrCity="
        + addrCity + ", addrDetail=" + addrDetail + ", addrProvince=" + addrProvince + ", targetName=" + targetName
        + "]";
  }

  public int getMID() {
    return MID;
  }

  public void setMID(int mID) {
    MID = mID;
  }

}
